package scau.erps.view.decision.finance;

import scau.erps.app.Erps;

public class LineFinancePanel extends SandPanelTemplateOfFinance {

	private static final long serialVersionUID = 1L;
	public LineFinancePanel(){
		super();
		this.label2.setVisible(true);
		this.label2.setText("转产费:");
		this.textField2.setVisible(true);
		this.label3.setVisible(true);
		this.label3.setText("其他:");
		this.textField3.setVisible(true);
		this.label4.setVisible(true);
		this.label4.setText("在制品:");
		this.textField4.setVisible(true);
		this.label5.setVisible(true);
		this.label5.setText("净值:");
		this.textField5.setVisible(true);
		this.label6.setVisible(true);
		this.label6.setText("在建:");
		this.textField6.setVisible(true);		
		this.setTextFieldValue();
			
	}
	@Override
	public void setTextFieldValue() {
		this.cash.setText(Integer.toString(Erps.getSand().getCash()));
		this.textField2.setText(Integer.toString(Erps.getSand().getSwitchFee()));
		this.textField3.setText(Integer.toString(Erps.getSand().getOther()));
		//TODO 从数据库中取值
	}
}
